package com.ysx.member.controller.feign;


import com.ysx.common.repentity.CommonResp;
import com.ysx.member.entity.TicketSaveReq;
import com.ysx.member.service.TicketService;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/feign/ticket")
@CrossOrigin
public class FeignTicketController {

    @Autowired
    private TicketService ticketService;

    @PostMapping("/save")
    public CommonResp<Object> save(@Valid @RequestBody TicketSaveReq req) {
        ticketService.save(req);
        return new CommonResp<>();
    }

}